<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color: #e5e1f5;
             /* padding: 0; */
            margin: 0;
            height: 100vh; 
             display: grid;/* 网格布局*/
             place-items: center; /* 网格里面的东西居中*/
            
        }
        .face{
            width: 300px;
            height: 300px;
            background-color: green;
              border-radius: 50%; /*圆形边框，大于50%*/
              background-image: radial-gradient(rgb(254,193,11) 50%,rgba(250, 211, 178));/*渐变色,从里面变到外面*/
              box-shadow: 30px 30px 30px rgba(0,0,0,0.28);/*阴影*/
               overflow: hidden;/*超出部分隐藏 */
              position: relative;/* 父容器*/
               
        }
        .face::before,/* 尾元素*/
        .face::after
        {
            content: ''; /*必须数据 */
            width: 32px;
            height: 45px;
            background-color: brown;
            position: absolute;/*子容器 */
            top:90px;
            border-radius: 50%;
    
        }
        .face::before{
            left: 80px;
        }
    .face::after{
        right: 80px;
    }
.mask{
    width: 220px;
    height: 120px;
    background-color: #fff;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;/* 左右居中*/
    bottom: 20px;
    border-radius: 8px 8px 50% 50%;/* 顺时针,左上，右上，左下，右下*/
    z-index: 0;
}
.mask::before,
.mask::after{
    content: '';
    width: 300px;
    height: 10px;
    background-color: rgb(255, 255, 255);
    position: absolute;
     /* right: -51px; */
      /*top: 28%; 继承父元素*/
       z-index: -1;/* 往上浮动*/
}
.mask::before{
right: -51px;
top: 28%;
 transform: rotate(-20deg);/*逆时针旋转20度,绕Z轴旋转 */
}
.mask::after{
    left: -51px;
    top: 28%;
 transform: rotate(20deg);
}
#detial{
    width: 180px;
    height: 16px;
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    margin: 0 auto; /*左右居中*/
    background-color: #bef4f1;
    border-radius: 0 0 50% 50%;
    box-shadow: 0 25px #bef4f1,0 50px #bef4f1;/*添加阴影*/
}
    </style>
</head>
<body>
    <div class="face">
<div class="mask">
 <div id="detial" ></div>
</div>
    </div>
</body>
</html>